package com.ftg.learn.framework.spring.annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 配置
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/9/20 上午10:25
 */
public class AnnotationDemo {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("springanno.xml");
        EatOrianage bean = applicationContext.getBean(EatOrianage.class);
        bean.eat();
    }

}
